package com.it.App.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.it.App.eneity.Permission;
import com.it.App.mapper.PermissionMapper;
import com.it.App.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;


/**
 * @Author: CaoYouGen
 * @DateTime: 2023/11/28/11:08
 * @注释: TODO
 **/
@Service
public class PermissionServiceImpl extends ServiceImpl<PermissionMapper, Permission> implements PermissionService{
    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public Set<String> getAllPermissionByUsername(String username) {
        return permissionMapper.selectAllPermissionCodeByUsername(username);
    }
}
